import turtle

r = 200  # 太极半径
turtle.pensize(2)  # 画笔尺寸

# 将太极的圆心调整至坐标原点
turtle.right(90)
turtle.penup()  # 拿起画笔
turtle.fd(r)
turtle.pendown()  # 落下画笔

turtle.right(90)  # 调整海龟角度

# 开始画阳鱼
turtle.fillcolor("white")  # 填充为白色
turtle.begin_fill()  # 开始填充
turtle.circle(-r / 2, 180)
turtle.circle(r / 2, 180)
turtle.circle(r, 180)
turtle.end_fill()  # 填充结束

# 开始画阴鱼
turtle.fillcolor("black")  # 填充为黑色
turtle.begin_fill()  # 开始填充
turtle.circle(r, 180)
turtle.right(180)
turtle.circle(-r / 2, 180)
turtle.circle(r / 2, 180)
turtle.end_fill()  # 填充结束

# 开始画阴鱼眼
turtle.goto(0, -5 * r / 8)  # 到达相应的坐标
turtle.fillcolor("white")
turtle.begin_fill()
turtle.circle(r / 8, 360)
turtle.end_fill()

turtle.penup()  # 拿起画笔
turtle.goto(0, r * 3 / 8)  # 到达相应的坐标
turtle.pendown()  # 放下画笔

# 开始画阳鱼眼
turtle.fillcolor("black")
turtle.begin_fill()
turtle.circle(r / 8, 360)
turtle.end_fill()
turtle.right(90)  # 让画笔转动90°，隐藏画笔

turtle.done()  # 让窗口停留
